<%@ page contentType="text/html; charset=utf-8" language="java" %>
<%@ page isELIgnored="false"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib prefix="shengruan" uri="http://www.shengruan.com/taglib"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="Pragma" content="no-cache">
<link href="../style.css" rel="stylesheet" type="text/css">
<%--<link rel="stylesheet" type="text/css" href="<c:url value='/admin/assets/js/jquery/jquery-lightbox/css/jquery.lightbox-0.5.css'/>" media="screen" />--%>
<script type="text/javascript" src="<c:url value='/admin/assets/js/jquery/jquery.js'/>"></script>
<%--<script type="text/javascript" src="<c:url value='/admin/assets/js/jquery/jquery-lightbox/js/jquery.lightbox-0.5.js'/>"></script>--%>
<script type="text/javascript">
/*$(function() {
	$('#gallery a').lightBox({
		fixedNavigation:false,
		overlayBgColor: '#FFF',
		overlayOpacity: 0.6,
		imageLoading: '<c:url value='/admin/assets/js/jquery/jquery-lightbox/images/lightbox-ico-loading.gif'/>',
		imageBtnClose: '<c:url value='/admin/assets/js/jquery/jquery-lightbox/images/lightbox-btn-close.gif'/>',
		imageBtnPrev: '<c:url value='/admin/assets/js/jquery/jquery-lightbox/images/lightbox-btn-prev.gif'/>',
		imageBtnNext: '<c:url value='/admin/assets/js/jquery/jquery-lightbox/images/lightbox-btn-next.gif'/>',
		containerResizeSpeed: 350,
		txtImage: 'Imagem',
		txtOf: 'de',
		keyToClose:'s'
	});
});*/
</script>
</head>
<body class="main">
<table class="container" cellpadding="0" cellspacing="0">

<tr class="dark" valign="middle">
<td><table width="100%" border="0">
  <tr>
    <td>
    <input class="button" type="button" value="新增" onClick="document.location='<c:url value='/admin/article/loadAdd.ac'/>'">
    </td>
  </tr>
</table>
</td>
</tr>
<tr>
<td colspan="2"><table class="list" align="center" cellspacing="1" cellpadding="0">
<tr class="heading">
<td width=3%>序号</td>
<td width=5%>类别</td>
<td width=9%>图片</td>
<td width=60%>标题</td>
<td width=14%>发布时间</td>
<td width=6%>&nbsp;</td>
</tr>
 <c:set var="sort" value="0"/>
<c:forEach var="article" items="${requestScope.articleList}">
<c:set var="sort" value="${sort+1}"/>
<c:set var="count" value="${(pager.currentPage-1)*pager.pageSize+sort}"/>
<tr <c:if test="${sort%2==0}">class="odd"</c:if>>
    <td height="25">${count}</td>
    <td>
  <c:forEach var="ARTICLE_TYPE" items="${requestScope.ARTICLE_TYPE_MAP}">
             <c:if test="${ARTICLE_TYPE.key == article.type}"><c:out value='${ARTICLE_TYPE.value}'/></c:if> 
    </c:forEach>
  </td>
    <td align="center"><div id="gallery"><img src="/uploadfiles/pic/${article.pic}" width="64" height="32"></div></td>
  <td height="25" style="text-align:left" title="${article.title}">${article.title}</td>
  <td>${article.postTime}</td>
  <td height="25" class="action">
    &nbsp;<a href="deleteArticle.ac?id=${article.id}" onClick="return confirm('确认删除吗？')"><img src="../images/delete.gif" alt="删除" title="删除"></a>
    &nbsp;<a href="initEditArticle.ac?id=${article.id}"><img src="../images/edit.gif" alt="编辑" title="编辑"></a>
    &nbsp;</td>
</tr>
</c:forEach>
<tr ><td colspan="11" height="40"><div align="right"><shengruan:pager url="/admin/article/article.ac" pager="${requestScope.pager}"/></div></td></tr>
</table>
</td>
</tr>
</table>
</body>
</html>

